<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ace="http://www.icefaces.org/icefaces/components"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        Hello from Facelets
        
        
        <h:form>
             <ace:panel header="JE RECHERCHE">
                 
<!--                 Sexe : <ace:textEntry value="#{recherchePersonne.sexe}"/>-->
                
<!--                    <h:outputLabel value="Sexe" />
                    <ace:selectMenu value="#{recherchePersonne.sexe}" >
                        <f:selectItems value="#{recherchePersonne.listSex}" />
                    </ace:selectMenu>
                    <br/>
                     <h:outputLabel value="Ville" />
                     Ville : <ace:textEntry value="#{recherchePersonne.ville}"/>
                     <ace:selectMenu value="#{recherchePersonne.ville}" >
                         <f:selectItems value="#{recherchePersonne.listVille}"/>
                    </ace:selectMenu>
                     <br/>-->
<!--                     Teint :
                      <ace:selectMenu value="kkkkkk" >
                        <f:selectItems value="#{recherchePersonne.listTeint}"/>
                    </ace:selectMenu>-->
                       <br/>
<!--                       Ville : -->
                     <h:outputLabel value="Ville" />
                    <ace:selectMenu value="#{recherchePersonne.ville}" >
                         <f:selectItems value="#{recherchePersonne.listVille}"/>
                    </ace:selectMenu>
                     <br/>
                       Age :  <ace:textEntry value="#{recherchePersonne.age}"/>
                       sexe : <ace:textEntry value="#{recherchePersonne.sexe}"/>
                      <br/>
<!--                      <h:outputLabel value="Sexe" />
                    <ace:selectMenu value="#{recherchePersonne.sexe}" >
                        <f:selectItems value="#{recherchePersonne.listSex}" />
                    </ace:selectMenu>-->
                    <br/>
                       
                      <h:commandButton value="Recherche" action="#{recherchePersonne.rechercher()}" />
               
            </ace:panel>
            
            <ace:dataTable value="#{recherchePersonne.laListeMbre}" var="par" rows="10">
             <ace:column headerText="nom">
                 <h:outputText value="#{par.nom}"/>
                </ace:column>
             <ace:column headerText="prenom">
                 <h:outputText value="#{par.prenom}"/>
                </ace:column>
             <ace:column headerText="age">
                 <h:outputText value="#{par.age}"/>
              </ace:column>
               <ace:column headerText="sexe">
                   <h:outputText value="#{par.sexe}"/>
              </ace:column>
            </ace:dataTable>
        </h:form>
    </h:body>
</html>

